﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
/// <summary>
/// Summary description for NotificationHelper
/// </summary>
public class NotificationHelper
{
    public enum Notification { error, attention, information, success }
    public static string SetNotification(Notification notification,string Message) {

        StringBuilder display = new StringBuilder();
        display.AppendFormat("<div class=\"notification {0} png_bg\">", notification.ToString());
        display.Append("<a href=\"javascript:void(0);\" class=\"closeMessage\">");
        display.Append("<img src=\"Images/icons/cross_grey_small.png\" title=\"Đóng thông báo này\" alt=\"Đóng\" /></a>");
        display.AppendFormat("<div>{0}</div></div>", Message);
        return display.ToString();
    }
}